package com.rp.system.po;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.raptor.entity.BaseModel4;

/**
 * 菜单
 * @author Administrator
 *
 */
@Entity
@Table(name="RP_SYSTEM_MENUS")
public class Menu extends BaseModel4 {

	private static final long serialVersionUID = -6933598383618552382L;

	private String name;		//菜单名称
	private String title;		//显示标题
	private String url;			//加载内容的路径
	private String iconCls;		//图标
	private String enabled2;	//是否激活

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	
	public String getIconCls() {
		return iconCls;
	}
	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}
	
	public String getEnabled2() {
		return enabled2;
	}
	public void setEnabled2(String enabled2) {
		this.enabled2 = enabled2;
	}
	
	/**
	 * 重写equals方法，ID相等则两个对象相等
	 */
	@Override
	public boolean equals(Object obj) {
		if (obj instanceof Menu) {
			Menu menu = (Menu) obj;
			if (menu.getId().equals(this.getId())) {
				return true;
			}
		}
		return false;
	}
	
}
